package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mz.mattress.api.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CouponMapper extends BaseMapper<Coupon> {

    Page<Coupon> listPage(Page page,
                          @Param("city") String city,
                          @Param("status") Integer status,
                          @Param("type") Integer type,
                          @Param("startTime") String startTime,
                          @Param("endTime") String endTime);

}
